<div class="generalWrap">
	<h1 class="headingTitle"><?php echo $heading_title ?></h1>
	<p class="button">
		<a class="aButton" href="<?php echo $back ?>">Back</a>
		<a class="aButton" href="<?php echo $add ?>">Add Photo</a>
	</p>
	<!-- <p class="pagination"><?php //echo $pagination ?></p> -->

	<?php foreach ($photos as $photo) { ?>
	<div class="boxImagesInner">		
		<a class="galleryLink" href="<?php echo $photo['photo'] ?>" rel="lightbox[photo]">
			<img class="image" src="<?php echo $photo['photo'] ?>" alt="" border="0" />
		</a>
		<div><a href="<?php echo base_url('phonebook/delete_photo/'.$photo['id'].'/'.$this->uri->segment(3).'/'.$this->uri->segment(4)) ?>" onclick="return confirm('Are you sure you want to delete?')">Delete</a></div>
	</div>
	<?php } ?>
	<div class="clear"></div>
	
	<p class="totalImages">Total: <?php echo $total ?></p>
</div>